<html class="bg-ebebeb"><head>
		<meta charset="utf-8">
		<!--
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
		-->
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta name="format-detection" content="telephone=no">
		<script>;(function(){var W=750,w=parseInt(window.screen.width),s=w/W,u=navigator.userAgent.toLowerCase(),m='<meta name="viewport" content="width='+W+',';if(/android (\d+\.\d+)/.test(u)){if(parseFloat(RegExp.$1)>2.3)m+='minimum-scale='+s+',maximum-scale='+s+',';}else{m+='user-scalable=no,';}m+='target-densitydpi=device-dpi">';document.write(m);}());</script><meta name="viewport" content="width=750,user-scalable=no,target-densitydpi=device-dpi">
		<title>与伍冬梅的对话</title>
		<link href="el-imfans/resources/wapItem/wap_new/css/wenda.css?v=201510191518" rel="stylesheet" type="text/css">
		<style type="text/css">
			/*html5*/
			article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block}
            .wendaMsgBox{padding-top:24px;}
			.guwen-inf h3{padding:6px 0 0 0;margin-bottom:0;}
			.guwen-inf h3 label{display:inline-block;position:relative;padding-right:64px;line-height:55px;}
            .guwen-inf h3 label em{font-size:24px;padding-left:8px;color:#999;}
            .plus-list-box{height:400px;}
            .plus-list-box ul:after{content:'';display:block;clear:both;}
            /*
            .guwen-inf h3 label:after{width:55px;height:55px;display:inline-block;content:'';background:url(../images/im/icon.png) -177px 0 no-repeat;position:absolute;right:0;top:50%;margin-top:-26px;}
            .guwen-inf.male h3 label:after{background-position:-232px 0;}
            */
            .plus-list-box{overflow-x:hidden;}
			.plus-list-order{position:absolute;bottom:0;left:0;text-align:center;width:100%;height:32px;line-height:32px;}
			.plus-list-order span{display:inline-block;width:14px;height:14px;border-radius:14px;background:rgba(0,0,0,0.5);margin:0 3px;}
			.plus-list-order span.current{background:#4b4b4b;}
            .pt-216{padding-top:196px;}
            .system-msg-box{text-align:center;padding:16px 0;}
            .system-msg{font-size:28px;width:60%;color:#666;padding:24px 24px;margin:0 auto;text-align:left;display:inline-block;background:#fefefe;border-radius:6px;}
            .shadow_mask,.shadow_mask_openUrl{position:fixed;width:100%;height:100%;background:rgba(0,0,0,0.6);top:0;left:0;z-index:200;}
            .msgMobilePhone{color: #999999;font-size: 28px;border-top: 1px solid #cccccc;display: block;padding-top: 10px;}
            .msgCusCont{font-size: 32px;color: #333;display: block;padding-bottom: 20px;}
        </style>
		 <!--[if lt IE 9]>
		<script type="text/javascript">
		    var e = "abbr, article, aside, audio, canvas, datalist, details, dialog, eventsource, figure, footer, header, hgroup, mark, menu, meter, nav, output, progress, section, time, video".split(', ');
		     var i= e.length;
		     while (i--){
		         document.createElement(e[i])
		     }                 
		</script>
		<![endif]-->
        
<script src="el-imfans/resources/wapItem/wap_new/js/jquery-1.10.2.min.js"></script>
<script src="el-imfans/resources/js/jweixin-1.1.0.js"></script>
<script type="text/javascript">
    function onBridgeReady(){
        WeixinJSBridge.call('hideOptionMenu');
    }

    if (typeof WeixinJSBridge == "undefined"){
        if( document.addEventListener ){
            document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
        }else if (document.attachEvent){
            document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
            document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
        }

    }else{
        onBridgeReady();
    }
</script>
	</head>
	<body class="bg-ebebeb" style="">
		<div class="mainBox pb-100 pt-216">
			<div class="chatUserBox box-size">
				<a target="_blank" href="http://md.quanyou.com.cn/el-ec-wap/picShow/showMain/001064eb-6996-4ccb-9064-eb69962ccb49">
                    
                        
                        
                            <img class="chatUserHeader f-left" src="http://shp.qpic.cn/bizmp/DmmP3HaIZVm3kribnye8uCDibZR9w0jpSIrhD5XRaiafD0lAEyaianzwiag/">
                        
                    


                    
                    <div class="chatUserInf guwen-inf">
						<h3><label class="ellip">
						      伍冬梅
                              <em>
                                  
                                      
                                      
                                      (女)
                                      
                                  
                              </em>
                            </label>
                        </h3>
						<p>所属门店：上饶市广丰区专卖店</p>
                        <span class="statusText">在线</span>
					</div>
				</a>
				<span class="chat-mark"></span>
			</div>
            <div class="fresh">下拉刷新</div>
			<section class="wendaList">

			<div class="wendaMsgBox guwen">					<h5 class="msgTimeLine">2019-03-08 09:49:55</h5>					<div class="wendaShowBox">						<div class="msgHeader"><img src="http://thirdwx.qlogo.cn/mmopen/vtnuMBibofcYIEu8312SgPVmP0sYEKZKsBhSIxuj30UqBGUhgGrpuXMRm50MCczclb6SKnBDdWhibvQHQYamXSBcUf0dC6iaHFib/132"></div>						<div class="shapeArrowBox ownerStatus">							<div class="msgInfBox"><div class="txtMsg">1</div></div>							<span class="arrowRadius"></span>						</div>					</div>				</div><div class="wendaMsgBox guwen">					<h5 class="msgTimeLine">2019-03-08 09:50:46</h5>					<div class="wendaShowBox">						<div class="msgHeader"><img src="http://thirdwx.qlogo.cn/mmopen/vtnuMBibofcYIEu8312SgPVmP0sYEKZKsBhSIxuj30UqBGUhgGrpuXMRm50MCczclb6SKnBDdWhibvQHQYamXSBcUf0dC6iaHFib/132"></div>						<div class="shapeArrowBox ownerStatus">							<div class="msgInfBox"><div class="txtMsg">fdfdfdfdfd</div></div>							<span class="arrowRadius"></span>						</div>					</div>				</div></section>
            <!--新增显示未读消息-->
            
		</div>
        <footer class="bottomFixedBox">
            <div id="wendaBox" class="bottomWendaBox box-size" style="padding-left:180px;">
                <a href="javascript:void(0)" class="plusMsgBtn"></a>
                <a href="javascript:void(0)" class="face"></a>
                <textarea class="box-size" placeholder="" id="message"></textarea>
                <a href="javascript:void(0)" class="sendMsgBtn">发送</a>
            </div>
            <section class="plus-list-box touchslider box-size hide">
                <div class="p_list_s touchslider-viewport" style="height: 400px; position: relative;">
                <div style="width: 100000px; position: absolute; left: 0px; height: 400px;">
                    <ul class="plus-list touchslider-item per-quarter" style="position: absolute; left: 0px;">
                    <li class="box-size">
                        <input type="file" value="" class="transFile">
                        <a href="javascript:void(0)" class="phone-pic-btn">
                            <span class="plus-inf-icon plus-pic box-size"></span>
                            <h6>图片</h6>
                        </a>
                    </li>
                    <li class="box-size">
                        <a target="_blank" href="/el-imfans/wap/fansChat/myAdvisorImpress/001064eb-6996-4ccb-9064-eb69962ccb49?hyId=bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67">
                            <span class="plus-inf-icon plus-gwyx box-size"></span>
                            <h6>顾问印象</h6>
                        </a>
                    </li>
                    <li class="box-size">
                        <a target="_blank" href="/el-imfans/wap/fans/pullFans2?empId=001064eb-6996-4ccb-9064-eb69962ccb49&amp;corpId=wx9f1f08b2e94fab41&amp;shareFlag=true">
                            <span class="plus-inf-icon plus-fxgw box-size"></span>
                            <h6>分享顾问</h6>
                        </a>
                    </li>
                    <li class="box-size">
                        <a target="_blank" href="/el-imfans/wap/fansChat/myInfo/bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67">
                            <span class="plus-inf-icon plus-myself"></span>
                            <h6>个人中心</h6>
                        </a>
                    </li>
                    <li class="box-size">
                        <a target="_blank" href="http://em.quanyou.com.cn/emallwap/whome/a1eccc65-6655-473d-accc-656655073d53">
                            <span class="plus-inf-icon plus-jxsp"></span>
                            <h6>精选商品</h6>
                        </a>
                    </li>
                </ul>
                </div>
                </div>
                <div class="plus-list-order">
                    
                </div>
            </section>

            






<!--表情-->
<input type="hidden" id="root" value="el-imfans">
<div id="content" class="hide">fdfdfdfdfd</div>
<div class="face_g_box">
    <section class="f_l_box" style="height: 400px; position: relative;">
        <div class="face_p_show" style="position: absolute; left: 0px; height: 400px; width: 100000px;">
            <ul class="face_p_list box-size" style="position: absolute; left: 0px;">
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/100.png" data="/::)"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/101.png" data="/::~"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/102.png" data="/::B"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/103.png" data="/::|"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/104.png" data="/:8-)"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/105.png" data="/::<"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/106.png" data="/::$"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/107.png" data="/::X"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/108.png" data="/::Z"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/109.png" data="/::'("></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/110.png" data="/::-|"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/111.png" data="/::@"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/112.png" data="/::P"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/113.png" data="/::D"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/114.png" data="/::O"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/115.png" data="/::("></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/116.png" data="/::+"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/117.png" data="/:--b"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/118.png" data="/::Q"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/119.png" data="/::T"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/120.png" data="/:,@P"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/121.png" data="/:,@-D"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/122.png" data="/::d"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/123.png" data="/:,@o"></li>
            </ul>
            <ul class="face_p_list box-size" style="position: absolute; left: 10000px;">
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/124.png" data="/::g"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/125.png" data="/:|-)"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/126.png" data="/::!"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/127.png" data="/::L"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/128.png" data="/::>"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/129.png" data="/::,@"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/130.png" data="/:,@f"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/131.png" data="/::-S"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/132.png" data="/:?"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/133.png" data="/:,@x"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/134.png" data="/:,@@"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/135.png" data="/::8"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/136.png" data="/:,@!"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/137.png" data="/:!!!"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/138.png" data="/:xx"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/139.png" data="/:bye"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/140.png" data="/:wipe"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/141.png" data="/:dig"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/142.png" data="/:handclap"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/143.png" data="/:&amp;-("></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/144.png" data="/:B-)"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/145.png" data="/:<@"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/146.png" data="/:@>"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/147.png" data="/::-O"></li>
            </ul>
            <ul class="face_p_list box-size" style="position: absolute; left: 10000px;">
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/148.png" data="/:>-|"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/149.png" data="/:P-("></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/150.png" data="/::'|"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/151.png" data="/:X-)"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/152.png" data="/::*"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/153.png" data="/:@x"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/154.png" data="/:8*"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/155.png" data="/:pd"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/156.png" data="/:<W>"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/157.png" data="/:beer"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/158.png" data="/:basketb"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/159.png" data="/:oo"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/160.png" data="/:coffee"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/161.png" data="/:eat"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/162.png" data="/:pig"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/163.png" data="/:rose"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/164.png" data="/:fade"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/165.png" data="/:showlove"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/166.png" data="/:heart"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/167.png" data="/:break"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/168.png" data="/:cake"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/169.png" data="/:li"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/170.png" data="/:bome"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/171.png" data="/:kn"></li>
            </ul>
            <ul class="face_p_list box-size" style="position: absolute; left: 10000px;">
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/172.png" data="/:footb"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/173.png" data="/:ladybug"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/174.png" data="/:shit"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/175.png" data="/:moon"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/176.png" data="/:sun"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/177.png" data="/:gift"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/178.png" data="/:hug"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/179.png" data="/:strong"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/180.png" data="/:weak"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/181.png" data="/:share"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/182.png" data="/:v"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/183.png" data="/:@)"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/184.png" data="/:jj"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/185.png" data="/:@@"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/186.png" data="/:bad"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/187.png" data="/:lvu"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/188.png" data="/:no"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/189.png" data="/:ok"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/190.png" data="/:love"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/191.png" data="/:<L>"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/192.png" data="/:jump"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/193.png" data="/:shake"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/194.png" data="/:<O>"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/195.png" data="/:circle"></li>
            </ul>
            <ul class="face_p_list box-size" style="position: absolute; left: 10000px;">
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/196.png" data="/:kotow"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/197.png" data="/:turn"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/198.png" data="/:skip"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/199.png" data="/:oY"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/200.png" data="\uE415"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/201.png" data="\uE40C"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/202.png" data="\uE412"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/203.png" data="\uE409"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/204.png" data="\uE410"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/205.png" data="\uE40D"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/206.png" data="\uE107"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/207.png" data="\uE403"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/208.png" data="\uE405"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/209.png" data="\uE40A"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/210.png" data="\uE40E"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/211.png" data="\uE11A"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/212.png" data="\uE11B"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/213.png" data="\uE437"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/214.png" data="\uE41D"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/215.png" data="\uE14C"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/216.png" data="\uE12F"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/217.png" data="\uE34B"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/218.png" data="\uE312"></li>
                <li><img src="" data-src="el-imfans/resources/wapItem/wap_new/images/im/weichat/219.png" data="\uE112"></li>
            </ul>
        </div>
    </section>
    <div class="plus-list-order" style="bottom:15px;">
        <span class="current face-nav-item"></span>
        <span class="face-nav-item"></span>
        <span class="face-nav-item"></span>
        <span class="face-nav-item"></span>
        <span class="face-nav-item"></span>
    </div>
</div>
<!--end 表情-->
<script src="el-imfans/resources/wapItem/wap_new/js/TouchSlide.1.1.js"></script>
<script src="el-imfans/resources/wapItem/wap_new/js/emoticons.js?v=201510131035"></script>
<script>
  $(function(){
      //光标定位插件
      $.fn.extend({
          insertContent : function(myValue, t) {
              var $t = $(this)[0];
              if (document.selection) {
                  var sel = document.selection.createRange();
                  sel.text = myValue;
                  sel.moveStart('character', -l);
                  var wee = sel.text.length;
                  if (arguments.length == 2) {
                      var l = $t.value.length;
                      sel.moveEnd("character", wee + t);
                      t <= 0 ? sel.moveStart("character", wee - 2 * t	- myValue.length) : sel.moveStart("character", wee - t - myValue.length);
                      sel.select();
                  }
              } else if ($t.selectionStart || $t.selectionStart == '0') {
                  var startPos = $t.selectionStart;
                  var endPos = $t.selectionEnd;
                  var scrollTop = $t.scrollTop;
                  $t.value = $t.value.substring(0, startPos) + myValue + $t.value.substring(endPos,$t.value.length);
                  $t.selectionStart = startPos + myValue.length;
                  $t.selectionEnd = startPos + myValue.length;
                  $t.scrollTop = scrollTop;
                  if (arguments.length == 2) {
                      $t.setSelectionRange(startPos - t,$t.selectionEnd + t);
                  }
              } else {
                  this.value += myValue;
              }
          }
      });

      //显示表情
      var isLazyLoadFace = true;
      $('.face').touchend_click(function(){
          var obj=$('.face_g_box'), plus = $('.plusMsgBtn');
          if(obj.hasClass('face_g_show')){
              obj.removeClass('face_g_show');
              plus.removeClass('plusMsgMinsBtn');
              $('.mainBox').animate({paddingBottom:100},50,function(){
              });
          }else{
              function show_face() {
                  obj.addClass('face_g_show');
                  plus.addClass('plusMsgMinsBtn');
                  $('.mainBox').animate({paddingBottom:500},50,function(){
                      $(window).scrollTop(1000000);
                  });
              }

              function lazy_load_face(dom) {
                  dom.each(function(){
                      var $this = $(this);
                      $this.attr('src', $this.attr('data-src')).removeAttr('data-src');
                  });
              }

              if (isLazyLoadFace) {
                  // 延迟加载第一页表情
                  lazy_load_face($('.face_p_list:eq(0) img'));
                  isLazyLoadFace = false;
                  setTimeout(function(){
                      show_face();

                      // 延迟加载剩余表情
                      lazy_load_face($('.face_p_list:gt(0) img'));
                  }, 300);
              } else {
                  show_face();
              }
          }
          $('.plus-list-box').hide();
          $('.touchslider-nav-item').hide();
      });

      //插入表情
      $('.face_p_list li').touchend_click(function(){
          var $textarea = $('.bottomWendaBox textarea');
          $textarea.prop('readonly',true);
          $textarea.insertContent($(this).find('img').attr("data"));
          $textarea.prop('readonly',false);
          c_change();
      });
  })


</script>
        </footer>

        <!--20150810 start-->
        <div class="shadow_mask_openUrl hide">
            <div class="friendTipBox box-size hide_new">
                <div class="ft-inf-box">
                    <h5 class="friendTipTit">您即将打开一个外部链接，请注意可能存在的安全问题。</h5>
                </div>
                <div class="friendTipBtn double_btn">
                    <a href="javascript:void(0)" class="p_g_btn p_cancelBtn box-size">取消</a>
                    <a href="javascript:void(0)" class="p_g_btn p_redBtn box-size p_goto_link">访问</a>
                </div>
                <!--单个按钮-->
                <!--
                <div class="friendTipBtn hide">
                    <a href="javascript:void(0)" class="g-btn deleteBtn box-size">我知道了</a>
                </div>
                -->
            </div>
        </div>
        <!--20150810 end-->
		<div class="loading">
			<div class="load-container">
				<div class="loader"></div>
			</div>
			<div class="w">加载中</div>
		</div>
        <input type="hidden" id="goodsid" value="">
        <input type="hidden" id="orderNo" value="">
		<script src="el-imfans/resources/wapItem/wap_new/js/jquery-1.10.2.min.js"></script>
		<script src="el-imfans/resources/wapItem/wap_new/js/jquery.mobiletouch.js"></script>
		<script src="el-imfans/resources/wapItem/wap_new/js/WeixinApi.js"></script>
        <script src="el-imfans/resources/js/upload.js"></script>
        <script src="el-imfans/resources/js/mobileBUGFix.mini.js"></script>
        <script src="el-imfans/resources/js/Event_alert.js"></script>
        <script src="el-imfans/resources/wapItem/wap_new/js/jquery.touchslider.min.js"></script>
        <script src="el-imfans/resources/wapItem/wap_new/js/chat/chat.js"></script>
		<script>

			$(function(){

                WeixinApi.ready(function(Api){
                    window.wxApi = Api;
                    getRecord(1, 10);
                });
                //getRecord(1, 10);//pc端展示聊天记录

                //选择图片
				$('.phone-pic-btn').click(function(){
					var $this = $(this);
                    var file = $this.parent().find('input[type=file]');
                    file.UploadImg({
                        url : '/el-imfans/wap/empChat/uploadPic2',
                        width : '800',
                        //height : '200',
                        quality : '0.8', //压缩率，默认值为0.8
                        // 如果quality是1 宽和高都未设定 则上传原图
                        mixsize : '10000000',
                        type : 'image/png,image/jpg,image/jpeg,image/pjpeg,image/gif,image/bmp,image/x-png',
                        before : function(blob){
                            //$('#img').attr('src',blob);
                            //$(".loading").fadeIn(200);
                            $(".loading").show();
                        },
                        error : function(msg){
                            $(".loading").fadeOut(200);
                            window.isPicSubmiting = false;
                            alertEC(msg);
                        },
                        success : function(url){
                            window.isPicSubmiting = false;
                            $(".loading").fadeOut(200);
                            if(url.indexOf("http://")!=-1){
                                addPicMsg(url);
                            } else if(url.indexOf("Request processing failed")!=-1){
                                alertEC("上传文件失败,最大支持1M");
                            } else if(url.indexOf("Bad Gateway")!=-1) {
                                alertEC("网络异常");
                            } else {
                                alertEC(url);
                            }
                            $('.plus-list-box').hide();
                            $('.plusMsgBtn').removeClass("plusMsgMinsBtn");
                        }
                    });
				});
	            //菜单
				$('.plusMsgBtn').click(function(){
					var $this = $(this) , plusListBox = $('.plus-list-box') ,face_g_box = $('.face_g_box');
                    if($this.hasClass('plusMsgMinsBtn')){
                        plusListBox.hide();
                        $('.mainBox').animate({paddingBottom:100},200,function(){
                            $this.removeClass('plusMsgMinsBtn');
                        });
                    }else{
                        $this.addClass('plusMsgMinsBtn');
                        plusListBox.fadeIn(300,function(){
                            $('.mainBox').animate({paddingBottom:500},100,function(){
                            });
                        });
                    }
                    face_g_box.removeClass('face_g_show');
                    $('.touchslider-nav-item').show();
                    //$('.mainBox').css('paddingBottom',100);
				});
				scrollLocation();

                /*20160222--语音控制-start*/
                var voiceInter = null , voiceStatus = 1;
                $('.wendaList').delegate('.msg_voice','click',function(){
                    var $this = $(this);
                    if($this.find("audio")[0].paused)
                    {
                        voiceAniFinish();
                        $this.find('.voice_ani').removeClass('voice_ani_5');
                        $this.find('.v_long_s em').fadeOut(300);
                        if(voiceInter){
                            clearInterval(voiceInter);
                            voiceInter = null;
                            return false;
                        }
                        voiceInter = setInterval(function(){
                            voiceAni($this);
                        },300);
                        $this.find("audio")[0].play();
                        //播放完毕事件监控
                        $this.find("audio")[0].addEventListener('ended', function()
                        {
                            clearInterval(voiceInter);
                        });
                        //消息置为已读
                        $.ajax({
                            url: "/el-imfans/wap/empChat/updateIsRead",
                            dataType: "json",
                            type: "GET",
                            cache: false,
                            data: {
                                id:$this.find("audio")[0].attr("id")
                            }
                        });
                    }else//停止播放
                    {
                        clearInterval(voiceInter);
                        voiceInter = null;
                        $this.find("audio")[0].pause();
                        $this.find('.voice_ani').removeClass("voice_ani_1").removeClass("voice_ani_2").removeClass("voice_ani_3").removeClass("voice_ani_4").addClass("voice_ani_5");
                    }
                });
                function voiceAni(dom){
                    var tag = dom.find('.voice_ani');
                    tag.removeClass('voice_ani_' + voiceStatus);
                    if(voiceStatus >= 5){
                        voiceStatus = 1;
                    }
                    voiceStatus++;
                    tag.addClass('voice_ani_' + voiceStatus);
                }
                function voiceAniFinish(){
                    clearInterval(voiceInter);
                    voiceInter = null;
                    $('.voice_ani_' + voiceStatus).removeClass('voice_ani_' + voiceStatus).addClass('voice_ani_5');
                    voiceStatus = 1;
                }
                //设置声音条的长度
                $('.msg_voice').each(function(){
                    var $this = $(this) , voice = $this.attr('voice');
                    $this.find('.txtMsg').css('width',Math.min(voice/60,1)*430+50 + 'px');
                });
                /*20160222--voice-end*/
			});

            //初始化websocket连接
            var ping;
            var socket;
            window.onload = function() {
                initWebSocket();
            }
            var initWebSocket = function() {
                if (!window.WebSocket) {
                    window.WebSocket = window.MozWebSocket;
                }
                if (window.WebSocket) {
                    socket = new WebSocket("ws://222.209.207.165:8066/websocket");
                    socket.onmessage = function(event) {
                        var json = JSON.parse(event.data);
                        if(json.properties.type == "pong"){
                            //console.log(event.data);
                            return;
                        }
                        var payload = JSON.parse(json.payload);
                        if(payload.type && payload.type == "changeEmpStatus"){
                            $(".statusText").html(payload.text);//显示顾问的新状态
                        }else{
                            addWendaInf('fensi', payload);//显示聊天信息
                        }
                    };
                    socket.onopen = function(event) {
                        //发送登录消息，告诉服务器你是谁
                        var message = {"properties":{"userId":"bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67","replyTo": "001064eb-6996-4ccb-9064-eb69962ccb49","appId":"qiyehao_el","type":"connect","flag": "2", "msgTime": (new Date()).Format("yyyy-MM-dd hh:mm:ss")},"payload":"connect"};
                        send(message);

                        //开始心跳
                        ping = setInterval(function(){
                            var pingMsg = {"properties":{"userId":"bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67","replyTo": "001064eb-6996-4ccb-9064-eb69962ccb49","appId":"qiyehao_el","type":"ping","flag": "2", "msgTime": (new Date()).Format("yyyy-MM-dd hh:mm:ss")},"payload":"ping"};
                            send(pingMsg);
                        },10000);

                    };
                    socket.onclose = function(event) {
                        //断开连接后尝试重新连接
                        initWebSocket();
                        setTimeout(function(){
                            if (socket.readyState != WebSocket.OPEN) {
                                clearInterval(ping);
                                //提示错误
                                if($(".wendaList").find(".system-msg-box").length<=0){
                                    var html =  '<div class="system-msg-box"><div class="system-msg">网络连接已断开，请检查手机网络或重新刷新页面</div></div>';
                                    $('.wendaList').append(html);
                                }
                            }
                        },1000);
                    };
                } else {
                    alertEC("您的浏览器不支持websocket!!!.");
                }
            }


            //发送websocket消息
            function send(message) {
                if (!window.WebSocket) {
                    return;
                }
                if (socket.readyState == WebSocket.OPEN) {
                    socket.send(JSON.stringify(message));
                } else {
                    clearInterval(ping);
                }
            }

            //缓存未发送的内容
            $(window).on('unload', function(){
                var msg = $("#message").val();

                var json = {"type":"cacheTxt","text": msg};
                var message = {"properties":{"userId":"bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67", "appId":"qiyehao_el","replyTo":"001064eb-6996-4ccb-9064-eb69962ccb49"},"payload": JSON.stringify(json)};
                send(message);
            });

            //发送消息
            $(".sendMsgBtn").click(function(){
                $(this).attr("disabled",true);

                var $msg = $("#message");
                if($.trim($msg.val().replace(/\n/g, "")) == ""){
                    alertEC("请输入要发送的内容");
                    $(this).removeAttr("disabled");
                    return;
                }

                //当断开连接时保留输入框的内容
                var _msg = unicode2native($msg.val()); // 兼容发送表情时出现的\uE112这种Unicode编码格式的文本消息
                if(addText(_msg)){
                    $msg.val("");
                    $("#wendaBox").removeClass().addClass("bottomWendaBox box-size");
                    $('#message').val('').removeAttr('style');
                }

                $(this).removeAttr("disabled");
            });

            function addText(note){

                if(note==""){
                    return false;
                }

                if (socket.readyState != WebSocket.OPEN) {
                    alertEC("连接已断开，请刷新再操作");
                    return false;
                }

                var msg = noHTML(note.trim());
                var json = {"type":"txt","text":msg};
                var message = {"properties":{"userId":"bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67","appId":"qiyehao_el","replyTo":"001064eb-6996-4ccb-9064-eb69962ccb49", "isFansMsg": true,"flag":"2","msgTime":(new Date()).Format("yyyy-MM-dd hh:mm:ss")},"payload":""+JSON.stringify(json)+""};

                addWendaInf('guwen',json);

                send(message);
                return true;
            }

            function addPicMsg(src){
                if (socket.readyState != WebSocket.OPEN) {
                    alertEC("连接已断开，请刷新再操作");
                    return;
                }

                var json = {"type":"pic","src":src};
                addWendaInf('guwen',json);

                var message = {"properties":{"userId":"bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67","appId":"qiyehao_el","replyTo":"001064eb-6996-4ccb-9064-eb69962ccb49","isFansMsg": true,"flag":"2","msgTime":(new Date()).Format("yyyy-MM-dd hh:mm:ss")},"payload":""+JSON.stringify(json)+""};
                send(message);
            }


            function addImgMsg(src,url,desc,note){
                if (socket.readyState != WebSocket.OPEN) {
                    alertEC("连接已断开，请刷新再操作");
                    return;
                }

                //适应电商需求
                var tit="";
                if(note=="顾问我想咨询这款商品"){
                    tit = note;
                    note = "";
                } else {
                    tit = "为您精选的一款产品，快去看看吧！"
                }

                var json = {"type":"picTxt","src":src,"tit":tit,"desc":desc,"url":url,note:noHTML(note.trim())};
                addWendaInf('guwen',json);

                var message = {"properties":{"userId":"bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67","appId":"qiyehao_el","replyTo":"001064eb-6996-4ccb-9064-eb69962ccb49","isFansMsg": true,"flag":"2","msgTime":(new Date()).Format("yyyy-MM-dd hh:mm:ss")},"payload":""+JSON.stringify(json)+""};
                send(message);

            }

            function friendTipPop(type, callback, dom) {
                var shadow = $('.shadow') , friendTipBox = $('.friendTipBox');
                if (type) {
                    shadow.fadeIn(300, function () {
                        friendTipBox.css('marginTop', '-' + (friendTipBox.height() / 2) + 'px').fadeIn(300);
                    })
                } else {
                    friendTipBox.fadeOut(300, function () {
                        shadow.hide();
                        if (callback && dom) {
                            dom.parent('li').addClass('selectedStore').siblings().removeClass('selectedStore');
                        }
                    });

                }
            }
            //获取问答信息类型
            function renderInfType(obj) {
                var obj = obj || {};
                if (obj.type == 'txt') {//纯文本
                    return '<div class="msgInfBox"><div class="txtMsg">' + obj.text + '</div></div>';
                } else if (obj.type == 'pic') {//纯图片
                    return '<div class="msgInfBox"><div class="imgMsg"><img src="' + (obj.src || '/el-imfans/resources/wapItem/newstore/images/fsgw/product.jpg') + '" /></div></div>';
                }else if(obj.type == 'voice')//语音
                {
                    return '<div class="msgInfBox msg_voice" voice="' + obj.duration + '"><div class="txtMsg"><span class="voice_ani voice_ani_5"></span><audio id="' + obj.id + '" style="display:none;" src="' + obj.src  + '" type="audio/mp3"></source></audio></div><div class="v_long_s"><span>' + obj.duration + '"' + '</span></div></div>';
                } else if (obj.type == 'picTxt') {//图文信息
                    return '<div class="msgInfBox"><div class="imgTxtMsg">\
						<a target="_blank" href="'+obj.url+'"><img src="' + (obj.src || '/el-imfans/resources/wapItem/newstore/images/fsgw/product.jpg') + '" />\
						<h6>' + (obj.tit || '为您推荐的一款宝贝，快去看看吧！') + '</h6>\
						<p>' + (obj.desc || '') + '</p><p>' + (obj.note || '') + '</p></a>\
					</div></div>';
                }else if(obj.type == 'cpmTxt'){
                    var ret = '<div class="msgInfBox productMsg">\
                                <span class="msgCusCont">' + obj.text + '</span>';
                                if(obj.empMobile && obj.empMobile != ''){
                                    ret += '<span class="msgMobilePhone">您也可以拨打电话联系我：<br>' + obj.empMobile + '</span>';
                                }
                        ret += "</div>";

                    return ret;
                }
            }
            /*
             * owner @用户角色 guwen和粉丝 String类型
             * type @问答数据 json对象
             */
            function addWendaInf(owner, json) {

                var headImg = owner == 'guwen' ? fensiImg : guwenImg;
                var status = owner == "guwen" ? ' ownerStatus':'';

                if (json.type == 'txt' && json.text.indexOf("<p>")==-1) {
                    // 表情转义字符替换
                    var $content = $('#content');
                    $content.replaceface(json.text);
                    //json.text = "<pre>" + $content.html() + "</pre>";
                    json.text = $content.html();
                }
                var dom = $('.wendaList');
                wendaStr = '<div class="wendaMsgBox' + (owner == 'guwen' ? ' guwen' : ' fensi') + '">\
					<h5 class="msgTimeLine">'+(new Date()).Format("yyyy-MM-dd hh:mm:ss")+'</h5>\
					<div class="wendaShowBox">\
						<div class="msgHeader"><img src="'+headImg+'" /></div>\
						<div class="shapeArrowBox'+status+'">\
							' + renderInfType(json) + '\
							<span class="arrowRadius"></span>\
						</div>\
					</div>\
				</div>';
                dom.append(wendaStr);
                showPicDetail(window.wxApi);

                /*if(navigator.userAgent.match(/iphone/i)) {
                    $('#message').blur();
                }*/
                //只有一条记录时滚动最上面
                if($(".wendaMsgBox").length<=1){
                    $('body,html').animate({
                        scrollTop: 0
                    }, 100);
                } else {
                    $('body,html').animate({
                        scrollTop: dom.height()
                    }, 500);
                }

            }


            var defImg = "el-imfans/resources/wapItem/newstore/images/fsgw/header.png";
            var assDefImg = "el-imfans/resources/wapItem/wap_new/images/im/header_init.png";
            var guwenImg = ('' == '1')?assDefImg:('http://shp.qpic.cn/bizmp/DmmP3HaIZVm3kribnye8uCDibZR9w0jpSIrhD5XRaiafD0lAEyaianzwiag/' == ''?defImg:'http://shp.qpic.cn/bizmp/DmmP3HaIZVm3kribnye8uCDibZR9w0jpSIrhD5XRaiafD0lAEyaianzwiag/');
            var guwenDefImg = 'http://shp.qpic.cn/bizmp/DmmP3HaIZVm3kribnye8uCDibZR9w0jpSIrhD5XRaiafD0lAEyaianzwiag/' == ''?defImg:'http://shp.qpic.cn/bizmp/DmmP3HaIZVm3kribnye8uCDibZR9w0jpSIrhD5XRaiafD0lAEyaianzwiag/';
            var fensiImg = "http://thirdwx.qlogo.cn/mmopen/vtnuMBibofcYIEu8312SgPVmP0sYEKZKsBhSIxuj30UqBGUhgGrpuXMRm50MCczclb6SKnBDdWhibvQHQYamXSBcUf0dC6iaHFib/132"==""?defImg:"http://thirdwx.qlogo.cn/mmopen/vtnuMBibofcYIEu8312SgPVmP0sYEKZKsBhSIxuj30UqBGUhgGrpuXMRm50MCczclb6SKnBDdWhibvQHQYamXSBcUf0dC6iaHFib/132";

            //获取后台历史数据
            var pageNum=1;
            var totalPayNum=1;
            var flag = false;
            function ajaxStart(){
                flag = true;
                $(".loading").fadeIn(200);
                pageNum++;
                getRecord(pageNum,10);
            }
            //获取数据成功后隐藏加载项
            function ajaxOut(){
                $(".loading").fadeOut(200,function(){
                    flag = false;
                });
            }
            //加载聊天记录
            function getRecord(pageNo, pageSize) {

                if(pageNum>totalPayNum){
                    ajaxOut();
                    return;
                }
                $.ajax({
                    url: "/el-imfans/wap/empChat/findRecord",
                    dataType: "json",
                    type: "POST",
                    cache: false,
                    data: {
                        pageNo: pageNo,
                        pageSize: pageSize,
                        empId:"001064eb-6996-4ccb-9064-eb69962ccb49",
                        fansId:"bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67",
                        flag:2
                    },
                    success: function (data) {
                        totalPayNum = data.totalPages;
                        var dataContent = data.content;
                        var len = data.content.length;
                        if(len==0){
                            ajaxOut();
                            return;
                        }
                        var html = [];
                        for (var i = (len-1); i >= 0; i--) {
                            var item = dataContent[i];
                            var msg_json = JSON.parse(item.msgInfo);
                            msg_json.id = item.id;
                            msg_json.isRead = item.isRead;
                            if (msg_json.type == 'lxwhTxt') { // 离线问候
                                continue;
                            }
                            if(msg_json.type == "cpmTxt" && (item.isRead == 0 || (new Date().getTime() - Date.parse(item.msgTime) > 86400000))){//1000 * 60 * 60 * 24
                                continue;
                            }
                            if(msg_json.type == "sysTxt"){
                                continue;
                            }

                            if (msg_json.type == 'txt' && msg_json.text.indexOf("<p>")==-1) {
                                var $content = $('#content');
                                $content.replaceface(msg_json.text);
                                //msg_json.text = "<pre>" + $content.html() + "</pre>";
                                msg_json.text = $content.html();
                            }
                            var wendaStr = '<div class="wendaMsgBox' + (item.flag==1 ? ' fensi' : ' guwen') + '">\
                                            <h5 class="msgTimeLine">' + item.msgTime + '</h5>\
                                            <div class="wendaShowBox">\
                                                <div class="msgHeader"><img src="' + (item.flag==1 ? (item.assEmpId==null?guwenDefImg:assDefImg) : fensiImg) + '" /></div>\
                                                <div class="shapeArrowBox' + (item.flag==1 ? '' : ' ownerStatus') + '">\
                                                    ' + renderInfType(msg_json) + '\
                                                    <span class="arrowRadius"></span>\
                                                </div>\
                                               </div>\
                                            </div>';
                            html.push(wendaStr);
                        }
                        $('.wendaList').prepend(html.join(''));
                        showPicDetail(window.wxApi);
                        ajaxOut();
                        if(pageNo==1 && len > 1){
                            scrollLocation();
                        }else{
                            $('body,html').animate({
                                scrollTop: 0
                            }, 100);
                        }
                        //设置声音条的长度
                        $('.msg_voice').each(function(){
                            var $this = $(this) , voice = $this.attr('voice');
                            $this.find('.txtMsg').css('width',Math.min(voice/60,1)*430+50 + 'px');
                        });
                    },complete:function() {
                        if(pageNo==1){
                            /*if(""!=0){
                                $(".unreaded_inf").show().text("条未读消息")
                            }*/

                            //电商咨询商品入口
                            var goodsid = $("#goodsid");
                            if(goodsid.val() != "" && "" != ""){
                                setTimeout(function(){
                                    addImgMsg("", "", "", "顾问我想咨询这款商品");
                                    goodsid.val("");
                                },500);
                            }

                            //电商咨询订单入口
                            var orderNo = $("#orderNo");
                            if(orderNo.val() != "" && "" != ""){
                                setTimeout(function(){
                                    var msg = '<p>亲爱的伍冬梅，这是我的订单编号：</p>\
                                               <p>商品数量：件</p>\
                                               <p>订单实付金额：元</p>\
                                               <p>订单状态：</p>'
                                               +(""==""?'':'<p class="remark_chat">注：此订单的服务顾问为</p>')
                                               +(""==""?'<a target="_blank" href="" style="color:#004eff;">查看详情</a>':'');
                                    //addText(msg);
                                    var json = {"type":"txt","text":msg};
                                    var message = {"properties":{"userId":"bf7599ae-f5e6-4b9f-b599-aef5e6eb9f67","appId":"qiyehao_el","replyTo":"001064eb-6996-4ccb-9064-eb69962ccb49", "isFansMsg": true,"flag":"2","msgTime":(new Date()).Format("yyyy-MM-dd hh:mm:ss")},"payload":""+JSON.stringify(json)+""};
                                    addWendaInf('guwen',json);
                                    send(message);
                                    orderNo.val("");
                                },500);
                            }
                        }
                        /*else {
                            $(".unreaded_inf").hide();
                        }*/
                    }
                });
            }

            //点击返回关闭页面
            $(function(){
                pushHistory();
                window.addEventListener("popstate", function(e) {
                    alertEC("期待后续为您服务，回到商品页面！", {
                        yes:'确定',
                        yes_handle:function(){
                            //WeixinJSBridge.call('closeWindow');
                            window.history.back();
                        },
                        no:'取消',
                        no_handle:function(){
                            pushHistory();
                        }
                    });
                }, false);

                function pushHistory() {
                    var state = {
                        title: "title",
                        url: "#"
                    };
                    window.history.pushState(state, "title", "#");
                }
            });

        </script>
	
</body></html>